# from Concant import *
import Concant
if __name__ == '__main__':
    dict_ticket = {
        'G1569': ['北京南-天津南', '18:06', '18:39', '00:33'],
        'G1567': ['北京南-天津南', '18:15', '18:49', '00:34'],
        'G8917': ['北京南-天津西', '18:20', '19:19', '00:59'],
        'G203': ['北京南-天津南', '18:35', '19:09', '00:34']
    }
    print('车次    出发站-到达站    出发时间   到达时间隔  历时时长')
    for key,value in dict_ticket.items():
        print(key,end="  ")
        for item in value:
            print(item,end= "     ")
        print()

train_no = input("车次：")

info = dict_ticket.get(train_no,Concant.error_msg)
if info != "车次不存在":
    person = input("输入乘车人：")
    s = info[0] + info[1] + '开'
    print('您已购买了' + train_no + ' ' + s + ',请' + person + '尽快换取纸制车票。【铁路客服】')
else:
    print(info)